import { permanentRedirect } from "next/navigation"; export const dynamic = "force-dynamic"; /** `/timeline/:id` lives on the entity page now — permanently redirected to `/entity/:id?tab=timeline`. */ export default async function TimelinePage({ params, searchParams }: { params: Promise<{ id: string }>; searchParams: Promise<{ cursor?: string; range?: string }> }) { const { id } = await params; const sp = await searchParams; const q = new URLSearchParams({ tab: "timeline", range: sp.range ?? "all" }); if (sp.cursor) q.set("cursor", sp.cursor); permanentRedirect(`/entity/${encodeURIComponent(id)}?${q.toString()}`); }